﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using ServicesComponent.Repositories.Core;
using Business_Objects;
using Data_Objects;
namespace ServicesComponent.Repositories
{
    ///// <summary>
    ///// StuReview Repository. Good example of CRUD operations.
    ///// </summary>
    public class StuReviewRepository : IStuReviewRepository
    {
        private static readonly IStuReviewDao _studentReview = DataAccess.StuReviewDao;
        public List<StuReview> GetList()
        {
            return _studentReview.GetStuReview().ToList();
        }

        public StuReview Get(string id)
        {
            return _studentReview.GetStuReviewByID(id);
        }

        public void Insert(StuReview t)
        {
            _studentReview.InsertStuReview(t);
        }

        public void Update(StuReview t)
        {
            _studentReview.UpdateStuReview(t);
        }

        public void Delete(StuReview t)
        {
            _studentReview.DeleteStuReview(t);
        }
    }
}